import request from '@/utils/request'

// 查询门店列表
export function getDeliveryPickUpStorePage(params) {
	return request({
		url: '/trade/delivery/pick-up-store/page',
		method: 'GET',
		params
	})
}

// 查询门店详情
export function getDeliveryPickUpStore(id) {
	return request({
		url: '/trade/delivery/pick-up-store/get?id=' + id,
		method: 'GET',
	})
}

// 创建门店
export function createDeliveryPickUpStore(data) {
	return request({
		url: '/trade/delivery/pick-up-store/create',
		'method': 'POST',
		'data': data
	})
}

// 更新门店
export function updateDeliveryPickUpStore(data) {
	return request({
		url: '/trade/delivery/pick-up-store/update',
		method: 'PUT',
		data
	})
}

// 删除门店
export function deleteDeliveryPickUpStore(id) {
	return request({
		url: `/trade/delivery/pick-up-store/delete?id=${id}`,
		method: 'DELETE',
	})
}